﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL.Services.Magazines.Listing
{
    public class MagazinesListing
    {

        public MagazinesListing()
        {
            Magazines = new List<Magazine>();

            Filter = new MagazinesFilter();
        }

        public int Page { get; set; }

        public int Size { get; set; }

        public string Column { get; set; }

        public int Direction { get; set; }

        public int TotalPages { get; set; }

        public MagazinesFilter Filter { get; set; }

        public List<Magazine> Magazines { get; set; }

        public class Magazine
        {
            [UIHint("hidden")]
            public int MagazineId { get; set; }

            [Display(Name = "Name")]
            public string Name { get; set; }
        }
    }
}
